<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>桌面挂件分享</title>
    <link rel="stylesheet" href="/styles.css">
    <script src="/socket.io/socket.io.js"></script>
</head>
<body>
    <div class="container">
        <header>
            <h1>桌面挂件分享</h1>
            <p>实时查看同事的工作状态和任务进度</p>
        </header>
        
        <main>
            <div class="user-info-section">
                <h2>个人信息</h2>
                <div class="user-info">
                    <div class="info-item">
                        <label>姓名:</label>
                        <span id="user-name">-</span>
                    </div>
                    <div class="info-item">
                        <label>部门:</label>
                        <span id="user-department">-</span>
                    </div>
                    <div class="info-item">
                        <label>职位:</label>
                        <span id="user-position">-</span>
                    </div>
                </div>
            </div>
            
            <div class="status-section">
                <h2>工位状态</h2>
                <div class="status-display">
                    <span id="current-status" class="status-badge">-</span>
                </div>
            </div>
            
            <div class="tasks-section">
                <h2>任务列表</h2>
                <div class="task-stats">
                    <span>总计: <span id="total-tasks">0</span></span>
                    <span>待办: <span id="pending-tasks">0</span></span>
                    <span>进行中: <span id="in-progress-tasks">0</span></span>
                    <span>已完成: <span id="completed-tasks">0</span></span>
                </div>
                <ul id="task-list" class="task-list">
                    <li class="no-tasks">暂无任务</li>
                </ul>
            </div>
        </main>
        
        <footer>
            <p>更新时间: <span id="update-time">-</span></p>
        </footer>
    </div>
    
    <script src="/script.js"></script>
</body>
</html>